package JD_SYNC_IN;

public class Example {
    class MyClass {
        private String name;
        public MyClass() {
            name = "";
        }
        synchronized public String getName() {
            return name;
        }
        synchronized public void setName(String name) {
            this.name = name;
        }
        public void foo(String x) {
            name = x;
        }
    }
}
